package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.BalanceLogDao;
import com.platform.entity.BalanceLogEntity;
import com.platform.service.BalanceLogService;

/**
 * 用户余额变更记录Service实现类
 *
 * @author Rin
 * @email immane@163.com
 * @date 2018-10-12 15:07:13
 */
@Service("balanceLogService")
public class BalanceLogServiceImpl implements BalanceLogService {
    @Autowired
    private BalanceLogDao balanceLogDao;

    @Override
    public BalanceLogEntity queryObject(Integer id) {
        return balanceLogDao.queryObject(id);
    }

    @Override
    public List<BalanceLogEntity> queryList(Map<String, Object> map) {
        return balanceLogDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return balanceLogDao.queryTotal(map);
    }

    @Override
    public int save(BalanceLogEntity balanceLog) {
        return balanceLogDao.save(balanceLog);
    }

    @Override
    public int update(BalanceLogEntity balanceLog) {
        return balanceLogDao.update(balanceLog);
    }

    @Override
    public int delete(Integer id) {
        return balanceLogDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return balanceLogDao.deleteBatch(ids);
    }
}
